Component({
  options: {
    multipleSlots: true,
    addGlobalClass: true,
  },
  data: {
    statusBarHeight: 0
  },
  externalClasses: ['custom-class', 'title-class'],
  lifetimes: {
    
    attached(){
      console.log('组件实例被挂载到页面后执行 attached');
      const info =  wx.getSystemInfoSync()
      console.log(info);
      this.setData({
        statusBarHeight: info.statusBarHeight
      })
    }
  },
  properties:{
    back:Boolean,
    delta:{
      type:Number,
      value:1
    }
  },
  methods:{
    goBack(){
      wx.navigateBack(this.data.delta)
    }
  }
})